package com.zoshine.zzg.pojo;

import com.zoshine.zzg.base.Pagination;
import com.zoshine.zzg.pojo.pojostatus.MenuStatus;

/**
 * 菜单实体类
 *
 * @author 贾俊峰
 * @time 2017/6/20 10:22
 */
public class Menu extends Pagination {
    private static final long serialVersionUID = -2347265799095341223L;

    /** 菜单编号 */
    private String menuId;
    /** 菜单名称 */
    private String menuName;
    /** 父级菜单编号 */
    private String parentId;
    /** 菜单级别 */
    private Integer menuLevel;
    /** 菜单图标 */
    private String menuIcon;
    /** 菜单链接 */
    private String menuLink;
    /** 菜单状态 */
    private Integer menuStatus;
    /**排序*/
    private Integer menuSort;

    public Menu() {}

    public Menu(String menuId, String menuName, String parentId, Integer menuLevel, String menuIcon,
            String menuLink, Integer menuStatus, Integer menuSort) {
        this.menuId = menuId;
        this.menuName = menuName;
        this.parentId = parentId;
        this.menuLevel = menuLevel;
        this.menuIcon = menuIcon;
        this.menuLink = menuLink;
        this.menuStatus = menuStatus;
        this.menuSort = menuSort;
    }

    public String getMenuStatusStr() {
        return MenuStatus.getDesc(menuStatus);
    }



    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public Integer getMenuLevel() {
        return menuLevel;
    }

    public void setMenuLevel(Integer menuLevel) {
        this.menuLevel = menuLevel;
    }

    public String getMenuIcon() {
        return menuIcon;
    }

    public void setMenuIcon(String menuIcon) {
        this.menuIcon = menuIcon;
    }

    public String getMenuLink() {
        return menuLink;
    }

    public void setMenuLink(String menuLink) {
        this.menuLink = menuLink;
    }

    public Integer getMenuStatus() {
        return menuStatus;
    }

    public void setMenuStatus(Integer menuStatus) {
        this.menuStatus = menuStatus;
    }

    public Integer getMenuSort() {
        return menuSort;
    }

    public void setMenuSort(Integer menuSort) {
        this.menuSort = menuSort;
    }
}
